$mainColor: #4e48ff;
$transitionTime: 0.5s;

* {
    outline: none;
}

a {
    color: black;
    text-decoration: none;
}

html,
body,
.main {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.main {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent url("../images/forget.jpg") no-repeat center center;
    background-size: cover;
}

// 重置密码盒子样式
.forget-box {
    display: flex;
    flex-direction: row;
    width: 1000px;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;

    // 左盒子样式
    .left-box {
        width: calc(50% - 64px);
        height: calc(100% - 64px);
        background-color: rgba($color: $mainColor, $alpha: 0.5);
        color: white;
        padding: 32px;

        // 重置密码标题样式
        .forget-title {
            font-weight: 400;
            font-size: 32px;
        }

        // 重置密码副标题样式
        .forget-sub-title {
            line-height: 32px;
        }
    }

    // 右盒子样式
    .right-box {
        width: 50%;
        height: 100%;
        background-color: white;

        // 重置密码表单样式
        .forget-form {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;

            :nth-child(n) {
                margin-bottom: 24px;
            }

            // 输入框样式
            input[type="text"],
            input[type="password"] {
                width: 400px;
                height: 50px;
                font-size: 20px;
                border: none;
                border-bottom: 1px solid rgb(200, 200, 200);
                transition: border $transitionTime;

                &:focus {
                    border-bottom: 1px solid $mainColor;
                }
            }

            // 获取验证码块样式
            .code-pane {
                display: flex;
                position: relative;

                // 验证码输入框样式
                .code {
                    width: calc(100% - 161px);
                    padding-right: 160px;
                }

                // 验证码按钮样式
                .code-button {
                    display: block;
                    position: absolute;
                    right: 0px;
                    width: 120px;
                    height: 52px;
                    background-color: transparent;
                    border: none;
                    cursor: pointer;
                    transition: color $transitionTime;

                    &:hover {
                        color: $mainColor;
                    }

                    &:disabled {
                        color: rgb(200, 200, 200);
                        cursor: not-allowed;
                    }
                }
            }

            // 重置密码按钮样式
            .reset-button {
                width: 200px;
                height: 50px;
                color: white;
                font-size: 18px;
                background-color: $mainColor;
                border: 1px solid $mainColor;
                border-radius: 4px;
                cursor: pointer;
                transform: translateX(100px);
                transition: opacity $transitionTime;

                &:hover {
                    opacity: 0.8;
                }
            }

            // 链接块样式
            .link {
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                width: 100%;
                padding-right: 100px;

                p {
                    margin: 0;
                    margin-bottom: 8px;

                    a {
                        color: $mainColor;
                        transition: opacity $transitionTime;

                        &:hover {
                            opacity: 0.5;
                        }
                    }
                }
            }
        }
    }
}